<%@ Page Language="VB" AutoEventWireup="false" CodeFile="SQConnectionsE.aspx.vb" Inherits="SAD_SQConnectionsE" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
   <link href="ADStyles.css" rel="stylesheet" type="text/css" />
</head>

<script type="text/javascript" language="javascript">
function NewWindowForPrinting()
{
    var WinRef = window.open('','Average_Connections','width=515,height=600'
                           +',menubar=1'
                           +',toolbar=1'
                           +',status=0'
                           +',scrollbars=1'
                           +',resizable=1');
   
    var oContent=document.getElementById('divWindowBody');
    WinRef.document.write('<html>');
    WinRef.document.write('<head>');
    WinRef.document.write('<title>Average Connections</title>');
    WinRef.document.write('<style type=\"text/css\">\r');
    WinRef.document.write('body\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');
    WinRef.document.write('tr\r');
    WinRef.document.write('{\r');
    WinRef.document.write('font-family: Verdana, Arial, Helvetica, sans-serif;\r');
    WinRef.document.write('font-size:	10px;\r');    
    WinRef.document.write('}\r');    
    WinRef.document.write('</style>\r');
    WinRef.document.write('<link href=\"http://<%=Session("BASEDIR")%>/SAD/ADStyles.css\" rel=\"stylesheet\" type=\"text/css\"/>');
    WinRef.document.write('</head>');
    WinRef.document.write('<body style=\"font-size: 10px;\"/>');
    WinRef.document.write(oContent.innerHTML);  
    WinRef.document.write('</body>');
    WinRef.document.write('</html>');
    WinRef.document.close();
}

function onLoad()
{
    var TopWindow=top.window.document;
    
    var DashTitle=TopWindow.getElementById('DashboardTitle');
    var DashMode=TopWindow.getElementById('DMode');
    var MyServer=TopWindow.getElementById('SID');

    DashTitle.innerHTML='<%=me.FormLabel %>';
    DashMode.value='<%=me.EditMode %>';
    MyServer.value='<%=me.ServerID %>';
}
</script>

<body onload="onLoad();">
    <form id="form1" runat="server">
    
    <table style="border-collapse:collapse; height: 30px; border: solid 1px grey; width: 515px;">
    <tr class="wmObjectDetailDev_TH" style="height: 30px; border-collapse: collapse; background-color: #C3C4C1; border-bottom: solid 1px black;">
        <td style="width:300px; font-weight: bold; padding-left: 5px;" id="tdCaption" runat="server">
            SQLAutoDoc Average Connections - Last 12 Weeks
        </td>
        <td style="width:25px;"> 
            <div id="divZoom" runat="server">
            <a href="" 
                runat="server" 
                id="AZoom">
            <img src="images/tb_back.jpg"   
                 title="Zoom Out"
                 alt="Zoom Out" 
                 border="0" />
            </a>
            </div>
        </td>
        <td style="width:25px;"> 
            <a href="" 
                runat="server" 
                id="ARefresh">
            <img src="images/tb_refresh.jpg"   
                 title="Refresh"
                 alt="Refresh" 
                 border="0" />
            </a>
        </td>
        
        <td style="width:25px;"> 
            <input type="image"
                   src="images/tb_newwindow.jpg"
                   onclick="javascript:NewWindowForPrinting();"  
                   title="View in seperate window for printing"
                   alt="View in seperate window for printing" />
        </td>        
            
        <td style="width:60px;">&nbsp;</td>
    </tr>
    </table>
    
    <div id="divWindowBody">
    <%Me.ShowImageTag()%>
    
    <input type="hidden" id="hidDBID" name="hidDBID" />
    <input type="hidden" id="hidTBID" name="hidTBID" />
    </div>
    </form>
</body>
</html>
